import React, { lazy } from 'react';
import { RouteConfig } from './remaining';
import Layout from '../../components/Layout';

// 懒加载组件
const DocumentManagement = lazy(() => import('../../views/Document'));

// 文档模块路由配置
export const documentRoutes: RouteConfig[] = [
  {
    path: '/document',
    element: <Layout />,
    children: [
      {
        path: '',
        element: <DocumentManagement />,
        meta: {
          title: '文档管理',
          icon: 'FileTextOutlined',
        },
      },
    ],
    meta: {
      title: '文档管理',
      icon: 'FileTextOutlined',
    },
  },
];

export default documentRoutes;